Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODShape


SetPolygon

The SetPolygon method modifies this shape to make it equivalent to the specified polygon.

ODShape SetPolygon (in ODPolygon polygon);
polygon
A valid polygon.
return value
A reference to this shape after it has been changed to be equivalent to the specified polygon.
DISCUSSION
After this method executes successfully, you are still responsible for deleting the original polygon; this shape does not use or modify it.

If the specified polygon is self-intersecting, certain methods, such as Intersect, Union, Subtract, and Outset, will probably simplify the polygon by removing the areas of self intersection.

SEE ALSO
The ODPolygon type (page 886).
The ODShape::CopyPolygon method (page 635).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help